package com.haois.mp.database.module.wxserver.dao;

import me.chanjar.weixin.mp.bean.template.WxMpTemplate;
import com.haois.mp.database.module.basic.dao.IBasicDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * Created by RuiHaoZ on 2018/2/2 14:13
 */
@Component
public interface TempMsgMapper extends IBasicDao<WxMpTemplate, String> {

    int save(@Param("wxMpTemplate") WxMpTemplate wxMpTemplate);

    WxMpTemplate getByTitle(@Param("title") String title);

    WxMpTemplate getByTempId(@Param("tempId") String tempId);

    void delete();

    void deleteByTitle(@Param("title") String title);

    void deleteByTempId(@Param("tempId") String tempId);
}
